<?php if (count($products) > 0) { ?>
    <div class="row">
        <?php foreach ($products as $product) {
            ?>        
            <div class="col-sm-6 col-md-3 col-xs-12 text-center">
                <div class="meio_produto">
                    <div><?php echo $this->Html->image('/images/' . $product['ProductsImage'][0]['image'], array('url' => array('controller' => 'products', 'action' => 'view', 'slug' => $product['Product']['slug']), 'alt' => $product['Product']['name'], 'width' => 150, 'height' => 150, 'class' => 'image')); ?></div>
                    <div><?php echo $this->Html->link($product['Product']['name'], array('controller' => 'products', 'action' => 'view', 'slug' => $product['Product']['slug'])); ?></div>
                    <div><?php echo $this->Formatacao->moeda($product['Product']['price']); ?></div>
                </div>
            </div>
        <?php } ?>
    </div>
    <?php echo $this->Paginator->pagination(); ?>
    <?php
} else {
    echo $this->element('sem_registro');
}
?>
